import 'package:fluttertoast/fluttertoast.dart';
import 'package:leader_doctor_flutter/common/http/http_client.dart';
import 'package:leader_doctor_flutter/common/utils/string_utils.dart';

/// @Author lixiaobin
/// @Date 2024/5/28
/// @Description
class ToastUtils {
  /// 网络请求toast
  static void toast(ServiceResult serviceResult) {
    if (StringUtils.isNotEmpty(serviceResult.responseMsg)) {
      Fluttertoast.showToast(msg: serviceResult.responseMsg ?? '');
    }
  }
}
